home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / var / lib / dpkg / info / update-notifier.postrm < prev    next >
Encoding:
Text File  |  2007-04-10  |  1.2 KB  |  38 lines

  1. #!/bin/sh
  2.  
  3. STAMP=/var/lib/update-notifier/dpkg-run-stamp
  4.  
  5. if [ "$1" = purge -a -f $STAMP ]; then
  6.     rm $STAMP
  7. fi
  8.  
  9. # Automatically added by dh_iconcache
  10. [ -d /usr/share/icons/hicolor ] && touch -m /usr/share/icons/hicolor || true
  11. if [ "$1" = "remove" ] && \
  12.    [ -x "`which gtk-update-icon-cache 2>/dev/null`" ] && \
  13.    [ -f /etc/gtk-2.0/gdk-pixbuf.loaders ]; then
  14.        if [ "`find /usr/share/icons/hicolor -mindepth 1 -maxdepth 1 -type d | wc -l`" -gt 0 ] && \
  15.        [ "`find /usr/share/icons/hicolor -mindepth 1 -maxdepth 1 -type f -name index.theme | wc -l`" -eq 1 ]; then
  16.            # we shouldn't bomb out, if gtk-update-icon-cache failes, 
  17.         # it's not important enough
  18.         gtk-update-icon-cache -q /usr/share/icons/hicolor || true;
  19.     else
  20.         # if the icon theme directory has no subdirs, we can remove the cache
  21.         rm -f /usr/share/icons/hicolor/icon-theme.cache || true;
  22.     fi
  23. fi
  24. # End automatically added section
  25. # Automatically added by dh_gconf
  26. if [ "$1" = purge ]; then
  27.     OLD_DIR=/etc/gconf/schemas
  28.     SCHEMA_FILES="update-notifier.schemas "
  29.     if [ -d $OLD_DIR ]; then
  30.         for SCHEMA in $SCHEMA_FILES; do
  31.             rm -f $OLD_DIR/$SCHEMA
  32.         done
  33.         rmdir -p --ignore-fail-on-non-empty $OLD_DIR
  34.     fi
  35. fi
  36. # End automatically added section
  37.  
  38.